package com.hippy.erya.config.interceptor;

import java.lang.annotation.*;

@Inherited
@Documented
@Target({ElementType.FIELD,ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AccessLimit {

    //标识 指定sec时间段内的访问次数限制
    int limit() default 100;
    //标识 时间段
    int sec() default 1;

}
